package com.cx.mapper;

import com.cx.pojo.Concern;
import com.cx.pojo.ConcernExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ConcernMapper {
    int countByExample(ConcernExample example);

    int deleteByExample(ConcernExample example);

//    取消关注
    int deleteByConcernedId(Integer concernedId);

    int insert(Concern record);

    int insertSelective(Concern record);

//    查
    Concern selectByConcerningId(Integer concerningId);     //我的关注
    Concern selectByConcernedId(Integer concernedId);     //我的粉丝

    List<Concern> selectByExample(ConcernExample example);

    Concern selectByPrimaryKey(Integer concernId);

    int updateByExampleSelective(@Param("record") Concern record, @Param("example") ConcernExample example);

    int updateByExample(@Param("record") Concern record, @Param("example") ConcernExample example);

    int updateByPrimaryKeySelective(Concern record);

    int updateByPrimaryKey(Concern record);





}